<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="车次号：" prop="bus_id">
          <el-input v-model="form.model.bus_id" clearable />
        </el-form-item>
        <el-form-item label="车辆：" prop="vehicle_id">
          <el-input v-model="form.model.vehicle_id" clearable />
        </el-form-item>
        <el-form-item label="车辆序号：" prop="vehicle_serial">
          <el-input v-model="form.model.vehicle_serial" clearable />
        </el-form-item>
        <el-form-item label="停班起始日期：" prop="stop_start_date">
          <el-input v-model="form.model.stop_start_date" clearable />
        </el-form-item>
        <el-form-item label="停班结束日期：" prop="stop_end_date">
          <el-input v-model="form.model.stop_end_date" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.bus_vehicle

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '车次车辆',
      actions: { add, edit, update },
      form: {
        model: {
          /** 车次号 */
          bus_id: '',
          /** 车辆 */
          vehicle_id: '',
          /** 车辆序号 */
          vehicle_serial: '',
          /** 停班起始日期 */
          stop_start_date: '',
          /** 停班结束日期 */
          stop_end_date: ''
        },
        rules: {}
      }
    }
  }
}
</script>
